package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.utils.PageResult;

import java.util.List;

public interface BaseService<T> {
    List<T> findAll();

    T findOne(Long id);

    void add(T t);

    void update(T t);

    void delete(Long id);

    void patchdel(Long[] ids);

    PageResult<T> queryPage(BaseQuery Query);

}

